
function toTop (value1, value2) {
  var pstyle1 = value1
  var scrollTop1 = value2
  var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
  if (scrollTop > 250) {
    if (scrollTop1) {
      scrollTop1 = false
      pstyle1 = true
    }
  } else {
    if (!scrollTop1) {
      scrollTop1 = true
      pstyle1 = false
    }
  }
  return [pstyle1, scrollTop1]
}
export default toTop
